package com.killer.service;

import com.killer.service.impl.ResumeFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author ：Killer
 * @date ：Created in 20-12-30 上午10:59
 * @description：${description}
 * @modified By：
 * @version: version
 */
// name:调用的服务名称,和服务提供者yml文件中spring.application.name保持一致
@FeignClient(name="cloud1-resume",fallback = ResumeFallback.class)
public interface ResumeFeignClient {

    //调用的请求路径
    @RequestMapping(value = "/resume/openstate/{userId}",method= RequestMethod.GET)
    //这里的value不能省略，否则抛出异常
    public Integer findResumeOpenState(@PathVariable(value = "userId") Long userId);
}
